<!DOCTYPE html >
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>thymeleaf 模板</h1>
<span th:text="${userModel.id}"></span>
<hr/>
name:<span th:text="${userModel.userName}"></span><br/>
age:<span th:text="${userModel.password}"></span>

xxx<span th:text="*{userModel.userName}">wangwu</span>

</body>
</html>